﻿<UserControl x:Class="HOG.Controls.EndGameControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:res="clr-namespace:ResourcesManager;assembly=ResourcesManager" 
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"	
    xmlns:im="clr-namespace:Microsoft.Expression.Interactivity.Media;assembly=Microsoft.Expression.Interactions"
    Height="570" Width="760">
    <i:Interaction.Triggers>
        <i:EventTrigger EventName="Loaded">
            <im:PlaySoundAction IsEnabled="True" Source="/HOG;Component/Sounds/sound_game_end.mp3" />
        </i:EventTrigger>
    </i:Interaction.Triggers>
    <Canvas x:Name="TheEnd" Height="600" Width="900">
        <Image Height="600" Width="900" Source="{Binding Source={StaticResource CustomLocStrings}, Path=LocalizedStrings.endGame_Path}" Stretch="Fill"/>
        <MediaElement x:Name="TloFIlmik_1_wmv" Height="284" Width="380" Source="{Binding Source={StaticResource CustomLocStrings}, Path=LocalizedStrings.endGame_video}" Stretch="None" Canvas.Left="273" Canvas.Top="191"/>
        <Button Style="{StaticResource ButtonHOGStyle}"  x:Name="Back" Height="49" Width="176" Content="{Binding Source={StaticResource CustomLocStrings}, Path=LocalizedStrings.endGame_Back}" Canvas.Left="360" Canvas.Top="479" Click="Button_Click">
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="Click">
                    <im:PlaySoundAction IsEnabled="True" Source="/HOG;Component/Sounds/sound_button_click.mp3" />
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </Button>
    </Canvas>
</UserControl>
